#include <stdio.h>

int main() {
	float x, y;
	scanf("%f", &x);
	if (x < 0)
		y = 4 * x + 3, 
		printf ("x=%.2f,y=%.2f", x, y);
	else {
		if (x > 2)
			y = -x + 5, 
			printf ("x=%.2f,y=%.2f", x, y);
		else
			y = x + 3,
			printf ("x=%.2f,y=%.2f", x, y);
	}
}
